package com.tengju.data.domain.model.analysis;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
 * @author chenhang
 * @Date 2021/5/5
 */
@Getter
@AllArgsConstructor
public class Meta {

    /**
     * 列名
     */
    private String colName;

    /**
     * 指标显示名称
     */
    private String showName;

    /**
     * 前端是否排序
     */
    private Boolean frontPageSort = false;

    /**
     * 指标类型
     */
    private MetaType metaType;

    private SensitiveLevel sensitiveLevel = SensitiveLevel.low;

    private String sqlColName;

    private String chartType;

    private String columnGroup;

    /**
     * 是否展示在表头，false 表示在内部展示
     */
    private Boolean isShow = true;

    private List<String> bindMetas;

    private String formula;

    private String orderKey;

    public void dynamicShowName(String showName) {
        this.showName = showName;
    }

}
